{extend name="public/base" /}
{block name="header"}
    <li class="active"><a href="javascript:;">安装协议</a></li>
    <li class="active"><a href="javascript:;">环境检测</a></li>
    <li><a href="javascript:;">创建数据库</a></li>
    <li><a href="javascript:;">安装</a></li>
    <li><a href="javascript:;">完成</a></li>
{/block}
{block name="body"}
    <h1>环境检测</h1>
    <table class="table">
        <caption><h2>运行环境检查</h2></caption>
        <thead>
            <tr>
                <th>项目</th>
                <th>所需配置</th>
                <th>当前配置</th>
            </tr>
        </thead>
        <tbody>
        <?php foreach($env as $v){?>

                <tr>
                    <td><?php echo $v[0]?></td>
                    <td><?php echo $v[1]?></td>
                    <td><i class="ico-<?php echo $v[4]?>">&nbsp;</i><?php echo $v[3]?></td>
                </tr>
        <?php } ?>
        </tbody>
    </table>
	<present name="dirfile">
    <table class="table">
        <caption><h2>目录、文件权限检查</h2></caption>
        <thead>
            <tr>
                <th>目录/文件</th>
                <th>所需状态</th>
                <th>当前状态</th>
            </tr>
        </thead>
        <tbody>
        <?php foreach($dirfile as $v){?>

                <tr>
                    <td><?php echo $v[3]?></td>
                    <td><i class="ico-success">&nbsp;</i>可写</td>
                    <td><i class="ico-<?php echo $v[2]?>">&nbsp;</i><?php echo $v[1]?></td>
                </tr>
         <?php } ?>
        </tbody>
    </table>
	</present>
    <table class="table">
        <caption><h2>函数依赖性检查</h2></caption>
        <thead>
            <tr>
                <th>函数名称</th>
                <th>检查结果</th>
            </tr>
        </thead>
        <tbody>
          <?php foreach($func as $v){?>
                <tr>
                    <td><?php echo $v[0]?>()</td>
                    <td><i class="ico-<?php echo $v[2]?>">&nbsp;</i><?php echo $v[1]?></td>
                </tr>
           <?php } ?>
        </tbody>
    </table>
{/block}

{block name="footer"}
    <a class="btn btn-success btn-large" href="{:url('Index/index')}">上一步</a>
    <a class="btn btn-primary btn-large" href="{:url('Install/step2')}">下一步</a>
{/block}
